<%--
  Created by IntelliJ IDEA.
  User: yue
  Date: 2018/5/14
  Time: 9:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录界面</title>
</head>
<body>
<form id="loginForm">
    用户名：<input type="text" name="user.username"/><br/>
    密&nbsp;&nbsp;码：<input type="password" name="user.password"/><br/>
    <input type="loginBn" value="登录"/><br/>
</form>
<div id="show" style="display: none">
</div>
<script type="text/javascript">
    $("#loginForm").click(function () {
        $("#show").hide();
        $.get("login",{},function (data) {
            console.log(data);
            $("#show").append(data);
        },"html");
    });
</script>
</body>
</html>
